Part Number Hot Search : 
MBI6001 14014 BL55077A 01200 LM338 ADG202 6152E MMBT222
Product Description
Full Text Search
 

To Download AD1953 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  rev. 0 a AD1953 information furnished by analog devices is believed to be accurate and reliable. however, no responsibility is assumed by analog devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. no license is granted by implication or otherwise under any patent or patent rights of analog devices. trademarks and registered trademarks are the property of their respective companies. one technology way, p.o. box 9106, norwood, ma 02062-9106, u.s.a. tel: 781/329-4700 www.analog.com fax: 781/326-8703 ?2003 analog devices, inc. all rights reserved. functional block diagram serial control interface mclk mux mclk generator (256/512 f s ) dac ?l dac ?r dac sw data capture out/tdm out a udio data mux 26 22 dsp core data f ormat: 3.23 (single precision) 3.45 (double precision) ram rom 3 3 3 3 3 analog outputs AD1953 master clock output serial data inputs master clock inputs serial data output spi input spi data output au x serial data input digital output sigmadsp 3-channel, 26-bit signal processing dac features 5 v 3-channel audio dac system digital audio output (2-channel or 6-channel packed mode) accepts sample rates up to 48 khz 7 biquad filter sections per channel dual dynamic processor with arbitrary input/output curve and adjustable time constants 0 ms to 6 ms variable delay/channel for speaker alignment stereo spreading algorithm for phat stereo effect program ram allows complete new program download via spi port parameter ram allows complete control of more than 200 parameters via spi port spi port features safe-upload mode for transparent filter updates 2 control registers allow complete control of modes and memory transfers differential output for optimum performance 112 db signal-to-noise (not muted) at 48 khz sample rate (a-weighted stereo) 70 db stop-band attenuation on-chip clickless volume control hardware and software controllable clickless mute digital de-emphasis processing for 32 khz, 44.1 khz, 48 khz sample rates flexible serial data port with right-justified, left-justified, i 2 s compatible, and dsp serial port modes auxiliary digital input graphical custom programming tools 48-lead lqfp plastic package applications 2.0/2.1 channel audio systems (2 main channels plus subwoofer) multichannel automotive sound systems multimedia audio mini component stereo home theater systems (ac-3 postprocessor) musical instruments in-seat sound systems (aircraft, motor coaches) product overview the AD1953 is a complete 26-bit, single-chip, 3-channel digital audio playback system with built-in dsp functionality for speaker equalization, dual-band compression/limiting, delay compensa- tion, and image enhancement. these algorithms can be used to compensate for real-world limitations of speakers, amplifiers, and listening environments, resulting in a dramatic improvement of perceived audio quality. the signal processing used in the AD1953 is comparable to that found in high end studio equipment. most of the processing is done in full 48-bit double-precision mode, resulting in very good low level signal performance and the absence of limit cycles or idle tones. the compressor/limiter uses a sophisticated two-band algorithm often found in high end broadcast compressors. (continued on page 9)
rev. 0 AD1953 ? table of contents features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 product overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 functional block diagram . . . . . . . . . . . . . . . . . 1 specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 absolute maximum ratings . . . . . . . . . . . . . . . . . 6 ordering guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 package characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 pin configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 pin function descriptions . . . . . . . . . . . . . . . . . . 7 typical performance characteristics . . . . . 8 performance plots . . . . . . . . . . . . . . . . . . . . . . . . . . 8 product overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 pin functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 signal processing . . . . . . . . . . . . . . . . . . . . . . . . . . 12 signal processing overview . . . . . . . . . . . . . . . . . . . . . . . 12 numeric formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 coefficient format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 internal dsp signal data format . . . . . . . . . . . . . . . . . . 13 high-pass filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 biquad filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 volume . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 stereo image expander . . . . . . . . . . . . . . . . . . . . . . . . . . 14 delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 main compressor/limiter . . . . . . . . . . . . . . . . . . . . . . . . 15 rms time constant . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 rms hold time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 rms release rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 look-ahead delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 post-compression gain . . . . . . . . . . . . . . . . . . . . . . . . . . 17 subwoofer compressor/limiter . . . . . . . . . . . . . . . . . . . . 17 de-emphasis filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 using the sub reinjection paths for systems with no subwoofer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 interpolation filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 spi port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 spi address decoding . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 control register 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 control register 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 volume registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 parameter ram contents . . . . . . . . . . . . . . . . . . . . . . . . 23 options for parameter updates . . . . . . . . . . . . . . . . . . . . 24 soft shutdown mechanism . . . . . . . . . . . . . . . . . . . . . . . 25 safeload mechanism . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 summary of ram modes . . . . . . . . . . . . . . . . . . . . . . . . 25 spi read/write data formats . . . . . . . . . . . . . . . 26 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 power-up sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 setting the clock mode . . . . . . . . . . . . . . . . . . . . . . . . . . 27 setting the data and mclk input selectors . . . . . . . . . . 28 data capture registers and outputs . . . . . . 28 serial data input/output ports . . . . . . . . . . . . 30 serial data input/output modes . . . . . . . . . . . . . . . . . . . 30 digital control pin . . . . . . . . . . . . . . . . . . . . . . . . 31 mute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 analog output section . . . . . . . . . . . . . . . . . . . . 31 graphical custom programming tools . . . . 32 appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 outline dimensions . . . . . . . . . . . . . . . . . . . . . . . . . 34
? rev. 0 test conditions, unless otherwise noted. supply voltages (avdd, dvdd) 5.0 v ambient temperature 25 c input clock 12.288 mhz input signal 1.000 khz 0 db full scale input sample rate 48 khz measurement bandwidth 20 hz to 20 khz word width 24 bits load capacitance 2200 pf load impedance 2.74 k ? input voltage high 2.1 v input voltage low 0.8 v analog performance * parameter min typ max unit resolution 24 bits signal-to-noise ratio (20 hz to 20 khz) (left/right output) no filter (stereo) 109 db with a-weighted filter 112 db dynamic range (20 hz to 20 khz, ?0 db input) (left/right output) no filter 109 db with a-weighted filter 108 112 db total harmonic distortion plus noise (left/right output) v o = ?.5 db ?3 ?00 db signal-to-noise ratio (20 hz to 20 khz) (subwoofer output) no filter (stereo) 104 db with a-weighted filter 107 db dynamic range (20 hz to 20 khz, ?0 db input) (subwoofer output) no filter 104 db with a-weighted filter 104 107 db total harmonic distortion plus noise (subwoofer output) v o = ?.5 db ?0 ?6 db analog outputs differential output range ( full scale) (left/right output) 2.72 v p-p differential output range ( full scale) (subwoofer output) 2.79 v p-p cmout 2.50 v dc accuracy gain error (left/right channel) ? +5 % gain error (subwoofer channel) ? +8 % interchannel gain mismatch ?.250 +0.250 db gain drift 150 ppm/ c dc offset ?5 +35 mv interchannel crosstalk (eiaj method) ?20 db interchannel phase deviation 0.1 degrees mute attenuation ?07 db de-emphasis gain error 0.1 db * performance of right and left channels is identical (exclusive of the interchannel gain mismatch and interchannel phase deviati on specifications). specifications subject to change without notice. specifications AD1953
rev. 0 AD1953 ? digital i/o parameter min typ max unit input voltage high (v ih ) 2.1 v input voltage high (v ih ) ?resetb 2.25 v input voltage low (v il ) 0.8 v input leakage (i ih @ v ih = 2.1 v) 10 a input leakage (i il @ v il = 0.8 v) 10 a high level output voltage (v oh ), i oh = 2 ma dvdd ?0.5 v low level output voltage (v ol ), i ol = 2 ma 0.4 v input capacitance 20 pf specifications subject to change without notice. power parameter min typ max unit supplies * voltage: analog, and digital 4.5 5 5.5 v analog current 42 48 ma analog current, power-down 40 46 ma digital current 66 76 ma digital current, spi power-down 6 10 ma digital current, reset power-down 54 62 ma dissipation operation, both supplies 540 mw operation, analog supplies 210 mw operation, digital supplies 330 mw spi power-down, both supplies 230 mw reset power-down, both supplies 470 mw power supply rejection ratio 1 khz 300 mv p-p signal at analog supply pins ?0 db 20 khz 300 mv p-p signal at analog supply pins ?0 db * odvdd current is dependent on load capacitance and clock rate. specifications subject to change without notice. temperature range parameter min typ max unit specifications guaranteed 25 c functionality guaranteed ?0 105 c storage ?5 125 c specifications subject to change without notice.
rev. 0 ? AD1953 digital timing parameter min typ max unit t dmd mclk recommended duty cycle @ 12.288 mhz (256 f s mode) 45 55 % t dmd mclk recommended duty cycle @ 24.576 mhz (512 f s mode) 40 60 % t dmd mclk delay (all mode) 25 ns t dbh bclk low pulsewidth 10 ns t dbh bclk high pulsewidth 10 ns t dbd bclk delay (to bclko) 25 ns t dls lrclk setup 0 ns t dlh lrclk hold 10 ns t dld lrclk delay (to lrclko) 25 ns t dds sdata setup 0 ns t ddh sdata hold 10 ns t ddd sdata delay (to sdatao) 25 ns t tfs tdmfs delay (from mclk) 35 ns t tbs tdmbc delay (from mclk) 35 ns t tos tdmo delay (from tdmbc) 5 ns t ccl cclk low pulsewidth 12 ns t cch cclk high pulsewidth 12 ns t cls clatch setup 10 ns t clh clatch hold 10 ns t cld clatch high pulsewidth 10 ns t cds cdata setup 0 ns t cdh cdata hold 10 ns t cod cout delay 35 ns t coh cout hold 2 ns t dcd dcsout delay 35 ns t dch dcsout hold 2 ns t pdrp pd/rst low pulsewidth 5 ns specifications subject to change without notice. digital filter characteristics at 44.1 khz parameter min typ max unit pass-band ripple 0.01 db stop-band attenuation 70 db pass band 20 khz 0.4535  f s stop band 24 khz 0.5442  f s group delay 24.625/f s sec specifications subject to change without notice.
rev. 0 AD1953 ? absolute maximum ratings * dvdd to dgnd . . . . . . . . . . . . . . . . . . . . . . ?.3 v to +6 v odvdd to dgnd . . . . . . . . . . . . . . . . . . . . . ?.3 v to +6 v avdd to agnd . . . . . . . . . . . . . . . . . . . . . . ?.3 v to +6 v digital inputs . . . . . . . . . . dgnd ?0.3 v to dvdd + 0.3 v analog inputs . . . . . . . . . . agnd ?0.3 v to avdd + 0.3 v agnd to dgnd . . . . . . . . . . . . . . . . . . . . ?.3 v to +0.3 v reference voltage . . . . . . . . . . . . . . . . . . . (avdd + 0.3)/2 v maximum junction temperature . . . . . . . . . . . . . . . . 125 c storage temperature range . . . . . . . . . . . . ?5 c to +150 c soldering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300 c/10 sec * stresses above those listed under absolute maximum ratings may cause perma- nent damage to the device. this is a stress rating only; functional operation of the device at these or any other conditions above those indicated in the operational section of this specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. package characteristics (48-lead lqfp) min typ max unit  ja (thermal resistance 76 c/w [junction-to-ambient])  jc (thermal resistance 17 c/w [junction-to-case]) pin configuration 48-lead lqfp 36 35 34 33 32 31 30 29 28 27 26 25 13 14 15 16 17 18 19 20 21 22 23 24 1 2 3 4 5 6 7 8 9 10 11 12 48 47 46 45 44 39 38 37 43 42 41 40 pin 1 identifier top view (not to scale) nc a gnd v outl v outl+ av d d a gnd av d d nc mclk2 mclk1 mclk0 auxdata mute dvdd nc = no connect sdata2 bclk2 lrclk2 sdata1 v outr+ v outr a gnd v outs+ AD1953 bclk1 v outs dgnd mclkout cout dcsout odvdd lrmuxo/tdmfs bmuxo/tdmbc dmuxo/tdmo zeroflag filtcap vref nc dgnd lrclk1 sdata0 bclk0 lrclk0 cdata cclk clatch resetb av d d a gnd nc caution esd (electrostatic discharge) sensitive device. electrostatic charges as high as 4000 v readily accumulate on the human body and test equipment and can discharge without detection. although the AD1953 features proprietary esd protection circuitry, permanent damage may occur on devices subjected to high energy electrostatic discharges. therefore, proper esd precautions are recommended to avoid performance degradation or loss of functionality. ordering guide model temperature range package description package option AD1953yst ?0 c to +105 c 48-lead lqfp st-48 AD1953ystrl ?0 c to +105 c 48-lead lqfp st-48 on 13" reel AD1953ystrl7 ?0 c to +105 c 48-lead lqfp st-48 on 7" reel eval-AD1953eb evaluation board
rev. 0 AD1953 ? pin function descriptions input/ pin no. mnemonic output description 1 nc no connect 2 mclk2 in master clock input 2 256/512 f s 3 mclk1 in master clock input 1 256/512 f s 4 mclk0 in master clock input 0 256/512 f s 5 auxdata in auxiliary serial data input 6 mute in mute signal, initiates volume ramp-down 7 dvdd digital supply for dsp core, 4.5 v to 5.5 v 8 sdata2 in serial data input 2 9 bclk2 in bit clock 2 10 lrclk2 in left/right clock 2 11 sdata1 in serial data input 1 12 bclk1 in bit clock 1 13 dgnd digital ground 14 lrclk1 in left/right clock 1 15 sdata0 in serial data input 0 16 bclk0 in bit clock 0 17 lrclk0 in left/right clock 0 18 cdata in spi data input 19 cclk in spi data bit clock 20 clatch in spi data framing signal 21 resetb in reset signal, active low 22 avdd analog 5 v supply 23 agnd analog gnd 24 nc no connect 25 vouts out negative sub analog dac output 26 vouts+ out positive sub analog dac output 27 agnd analog gnd 28 voutr out negative left analog dac output 29 voutr+ out positive left analog dac output 30 avdd analog 5 v supply 31 agnd analog gnd 32 avdd analog 5 v supply 33 voutl+ out positive left analog dac output 34 voutl out negative left analog dac output 35 agnd analog gnd 36 nc no connect 37 nc no connect 38 vref in connection for filtered avdd/2 39 filtcap in connection for noise reduction capacitor 40 zeroflag out zero flag output. high when both left and right channels are 0 for 1024 frames. 41 dmuxo/tdmo out dual-function pin: serial data mux output/tdm mode output data 42 bmuxo/tdmbc out dual-function pin: bit clock mux output/tdm mode bit clock output (256 f s ) 43 lrmuxo/tdmfs out dual-function pin: left/right clock mux output/tdm mode frame sync clock output 44 odvdd digital supply pin for output drivers, 2.5 v to 5.5 v 45 dcsout out data capture serial output for data capture registers. use in conjunction with selected lrclk and bclk to form a 3-wire output. 46 cout out spi data output, three-stated when inactive 47 mclkout out master clock output 512/256 f s (frequency selected by spi register) 48 dgnd digital ground
AD1953?ypical performance characteristics ? rev. 0 performance plots the following plots demonstrate the performance achieved on the actual silicon. tpc 1 shows an fft of a full-scale 1 khz signal with a thd+n of ?00 db, which is dominated by a second harmonic. tpc 2 shows an fft of a ?0 db sine wave, demon- strating the lack of low level artifacts. tpc 3 shows a frequency response plot with the seven equalization biquads set to an alter- nating pattern of 6 db boosts and cuts. tpc 4 shows a linearity plot, where the measurement was taken with the same equaliza- tion curve used to make tpc 3. when the biquad filters are not in use, the signal passes through the filters with no quantization effects. tpc 4 therefore demonstrates that using double-precision math in the biquad filters has virtually eliminated any quantization artifacts. tpc 5 shows a tone-burst applied to the compressor, with the attack and recovery characteristics plainly visible. the rms detector was programmed for normal rms time constants; the hold/decay feature was not used for this plot. 0 ?60 020 2468 141618 ?0 ?0 ?20 ?0 ?0 ?00 ?40 10 12 khz db tpc 1. fft of full-scale sine wave (32k points) 0 ?60 020 2468 141618 ?0 ?0 ?20 ?0 ?0 ?00 ?40 10 12 khz db tpc 2. fft of ?0 db sine wave (32k points) hz 0 ?0 20 10k ?0 1k 100 ? ? ? ? ?2 ?4 ?6 ?8 50 200 500 5k db tpc 3. frequency response of eq biquad filters 3.0 ?.0 ?20 0 ?00 ?0 ?0 0.5 ?.0 ?.0 0 ?.5 ?.5 ?.5 ?0 ?0 dbfs 2.5 1.5 2.0 1.0 db tpc 4. linearity plot ?.0 ?20 0 ?00 ?0 ?0 ?0 ms ?.5 ?.0 ?.5 0 0.5 1.0 1.5 2.0 v tpc 5. tone-burst response with compressor threshold set to ?0 db
rev. 0 AD1953 ? product overview (continued from page 1) an extensive spi port allows click-free parameter updates, along with readback capability from any point in the algorithm flow. the AD1953 also includes adi? patented multibit - ? dac architecture. this architecture provides 112 db snr and dynamic range and thd+n of ?00 db. these specifications allow the AD1953 to be used in applications ranging from low end boom- boxes to high end professional mixing/editing systems. the AD1953 has a digital output that allows it to be used purely as a dsp. this digital output can also be used to drive an exter- nal dac to extend the number of channels beyond the three that are provided on the chip. this chip can be used with either its default signal processing program or with a custom user- designed program. graphical programming tools are available from adi for custom programming. features the AD1953 is comprised of a 26-bit dsp (48-bit with double- precision) for interpolation and audio processing, three multibit - ? modulators, and analog output drive circuitry. other features include an on-chip parameter ram using a ?afe-upload? feature for transparent and simultaneous updates of filter coefficients. digital de-emphasis filters are also included. on-chip input selectors allow up to three sources of serial data and master clo ck to be selected. the 3-channel configuration is especially useful for 2.1 playback systems that include two satellite speakers and a subwoofer. the default program allows for indepen dent equalization and compression/limiting for the satellite and subwoofer outputs. figure 1 shows the block diagram of the de vice. the AD1953 contains a program ram that is booted from an internal program rom on power-up. signal-processing param- eters are stored in a 256-location parameter ram, which is initialized on power-up by an internal boot rom. new values are written to the parameter ram using the spi port. the values stored in the parameter ram control the iir equaliza tion filters, the dual-band compressor/limiter, the delay values, and the settings of the stereo spreading algorithm. the AD1953 has a very sophisticated spi port that supports complete read/write capability of both the program ram and the parameter ram. two control registers are also provided to control the chip serial modes and various other optional fea- tures. handshaking is included for ease of memory uploads/ downloads. the AD1953 contains eight independent data-capture circuits that can be programmed to tap the signal flow of the processor at any point in the dsp algorithm flow. two of these data- capture circuits can be read back over the spi port, and the other six are fed to a serial output pin operating either in tdm mode (for all six channels) or 2-channel mode for simple con- nection to an external dac. this allows the basic functionality of the AD1953 to be easily extended. the processor core in the AD1953 has been designed from the ground up for straightforward coding of sophisticated compres- sion/limiting algorithms. the AD1953 contains two independent compressor/limiters with rms based amplitude detection and attack/hold/release controls, together with an arbitrary compres- sion cur ve that is loaded by the user into a lookup table that resides in the parameter ram. the compressor also features look-ahead compression, which prevents compressor overshoots. the AD1953 has a very flexible serial data input port that allows for glueless interconnection to a variety of adcs, dsp chips, aes/ebu receivers, and sample rate converters. the AD1953 can be configured in left-justified, i 2 s, right-justified, or dsp serial port compatible modes. it can support 16, 20, and 24 bits in all modes. the AD1953 accepts serial audio data in msb first, twos complement format. the part can also be set up in a 4-channel serial input mode by simultaneously using the serial input mux and the auxiliary serial input. the AD1953 operates from a single 5 v power supply. it is fabricated on a single monolithic integrated circuit and is housed in a 48-lead lqfp package for operation over the temperature range ?0 c to +105 c. 3:1 a udio data mux 1 3 3 spi port 3:1 mclk mux 1 mclk generator 1 (256/512 f s in) 256/512 f s out dac ?l coefficient rom 64 22 26 22 dsp core data f ormat: 3.23 (single precision) 3.45 (double precision) 3 3 analog outputs master clock i/o group dcsout spi i/o group 3 serial in 1 da ta memory, 512 26 control registers trap reg. (i 2 s, spi) safeload registers program ram 512 35 p arameter ram 256 22 boot rom memory controllers dac ?r dac sw 2 bias analog bias resetb mute de-emphasis zeroflag notes 1 controlled through spi control registers 2 dac does not use digital interpolation serial data i/o group dcsout trap au x serial data input (2-channel and tdm) filtcap a gnd 3 dgnd 2 vo ltag e reference vref dvdd av d d odvdd 3 boot rom figure 1. block diagram
rev. 0 AD1953 ?0 pin functions all input pins have a logic threshold compatible with ttl input levels, and may therefore be used in systems with 3.3 v logic. all digital output levels are controlled by the odvdd pin, which may range from 2.7 v to 5.5 v, for compatibility with a wide range of external devices. (see pin function descriptions.) sdata0, 1, 2 ?erial data inputs. one of these three inputs is selected by an internal mux, set by writing to bits <7:6> in control register 2. default is 00, which selects sdata0. the serial format is selected by writing to bits <3:0> of control register 0. see spi read/write data formats section for recommendations on how to change input sources without causing a click or pop noise. lrclk0, 1, 2 ?eft/right clocks for framing the input data. the active lrclk input is selected by writing to bits <7:6> in control register 2. default is 00, which selects lrclk0. t he interpretation of the lrclk changes according to the serial mode, set by writing to control register 0. bclk0, 1, 2 ?erial bit clocks for clocking in the serial data. the active bclk input is selected by writing to bits <7:6> in control register 2. default is 00, which selects bclk0. the interpretation of bclk changes according to the serial mode, which is set by writing to control register 0. dmuxo/tdmo, lrmuxo/tdmfs, bmuxo/tdmbc dual-function pins: ? function 1: outputs of 3:1 mux that selects one of the three serial input groups. ? function 2: used for 6-channel data capture outputs in tdm data capture mode. these three pins operate as mux outputs when bit <8> of control register 2 is a 1 and bits <13:12> of control register 1 are 00. these pins may be used to send the selected serial input signals to other external devices. the default is off. in tdm mode, tdmbc provides a 256 f s clock signal, tdmfs provides a frame sync signal, and tdmo provides the tdm data for an external multichannel dac or codec, such as the ad1833 or ad1836 respectively. these output pins are enabled by writing a 01 to bits <13:12> of control register 1. the default mode is 00, or off. in tdm mode, the internal signals that are captured are con- trolled by writing program counter trap numbers to spi addresses 268 to 273. when the internal program counter contents are equal to the trap values written to the spi port, the selected dsp register is transferred to parallel-to-serial registers and shifted out of the tdmo pin. mclk0, 1, 2 ?aster clock inputs. active input selected by writing to bits <5:4> of control regis- ter 2. the default is 00, which selects mclk0. the master clock frequency must be either 256 f s or 512 f s , where f s is the input sampling rate. the master clock frequency is programmed by writing to bit <2> of control register 2. the default is 0, (512 f s ). see initialization section for recommendations concerning how to change clock sources without causing an audio click or pop. note that since the default mclk source pin is mclk0, there must be a clock signal present on this pin on power-up so that the AD1953 can complete its initialization routine. mclko ?aster clock output. the master clock output pin may be programmed to produce either 256 f s , 512 f s , or a copy of the selected mclk input pin. this pin is programmed by writing to bits <1:0> of control register 2. the default is 00, which disables the mclko pin. cdata ?erial data in for the spi control port. see spi port section for more information on spi port timing. cout ?erial data output. this is used for reading back registers and memory locations. it is three-stated when an spi read is not active. see spi port section for more information on spi port timing. cclk ?pi bit rate clock. this pin either may run continuously or be gated off between spi transactions. see spi port section for more information on spi port timing. clatch ?pi latch signal. this pin must go low at the beginning of an spi transaction, and high at the end of a transaction. each spi transaction may take a different number of cclks to complete, depending on the address and read/write bit that are sent at the beginning of the spi transaction. detailed spi timing information is given in the spi port section. resetb ?ctive-low reset signal. after resetb goes high, the AD1953 goes through an ini- tialization sequence where the program and parameter rams are initialized with the contents of the on-board boot roms. all spi registers are set to 0, and the data rams are also zeroed. the initialization is complete after 1024 mclk cycles. since the mclk in freq select (bit <2> in control register 2) defaults to 512 f s at power-up, this initialization will proceed at the external mclk rate and will take 1024 mclk cycles to complete, regardless of the absolute frequency of the external mclk. new values should not be written to the spi port until the initialization is complete. zeroflag ?ero-input indicator. this pin will go high if both serial inputs have been inactive (zero data) for 1024 lrclk cycles. this pin may be used to drive an external mute fet for reduced noise during digital silence. this pin also functions as a test out pin, controlled by the test register at spi address 511. while most test modes are not useful to the end user, one may be of some use. if the test register is programmed with the number 7 (decimal), the zeroflag output will be switched to the output of the inter- nal pseudo-random noise generator. this noise generator operates at a bit rate of 128 f s , and has a repeat time of once per 2 24 cycles. this mode may be used to generate white noise (or, with appropriate filtering, pink noise) to be used as a test signal for measuring speakers or room acoustics. dcsout ?ata capture serial out. this pin will output the dsp? internal signals, which can be used by external dacs or other signal-processing devices. the signals that are captured and output on the dcsout pin are controlled by writing program counter trap numbers to spi addresses 263 (for the left output) and 264 (for the right output). when the internal program counter contents are equal to the trap values written to the spi port, the selected dsp register is transferred to the dcsout parallel-to-serial registers and
rev. 0 AD1953 ?1 shifted out on the dcsout pin. table xxi shows the pro- gram counter trap values and register-select values that should be used to tap various internal points of the algorithm flow. the dcsout pin is meant to be used in conjunction with the lrclk and bclk signals that are provided to the serial input port. the format of dcsout is the same as the format used for the serial port. in other words, if the serial port is running in i 2 s mode, then the dcsout pin, together with the lrclk0 and bclk0 pins (assuming input 0 is selected), will form a valid 3-wire i 2 s output. the dcsout pin can be used for a variety of purposes. if the dcsout pin is used to drive another external dac, then a 4.1 system is possible using a new program downloaded into the program ram. auxdata ?uxiliary serial data input. the auxdata pin may be used in conjunction with a custom program to access two extra channels of serial input data, allow- ing for a total of four input channels. the serial format is identical to the selected format of sdata0, 1, 2. the auxdata pin is synchronous to the selected lrclk and bclk signal, and there- fore should have the same timing as the main serial input signal. mute ?ute output signal. when this pin is asserted high, a ramp sequence is started that gradually reduces the volume to zero. when deasserted, the volume ramps from zero back to the original volume setting. the ramp speed is timed so that it takes 10 ms to reach zero volume when starting from the default 0 db volume setting. voutl+, voutl ?eft-channel differential analog out- puts. full-scale outputs correspond to 1 v rms on each output pin, or 2 v rms differential, assuming a vref input voltage of 2.5 v. the full-scale swing scales directly with vref. these outputs are capable of driving a load of > 5 k ? , with a maximum peak current of 1 ma from each pin. an external third-order filter is recom- mended for filtering out-of-band noise. voutr+, voutr ?ight channel differential outputs. output characteristics are the same as for voutl+ and voutl? vouts+, vouts ?ub channel differential outputs. these outputs are designed to drive loads of 10 k ? or greater, with a peak current capability of 250 a. this output does not use digital interpolation, as it is intended for low frequency application. an external third-order filter with a cutoff frequency < 2 khz is recommended. vref ?nalog reference voltage input. the nominal vref input voltage is 2.5 v; the analog gain scales directly with the voltage on this pin. when using the AD1953 to drive a power amplifier, it is recommended that the vref voltage be derived by dividing down and heavily filtering the supply to the power amplifier. this provides a benefit if the compressor/limiter in the AD1953 is used to prevent amplifier clipping. in this case, if the dac output voltage is scaled to the amplifier power supply, a fixed compressor threshold can be used to protect an amplifier whose supply may vary over a wide range. any ac signal on this pin will cause distortion, and a large decoupling capacitor may therefore be necessary to ensure that the voltage on vref is clean. the input impedance of vref is greater than 1 m ? . filtcap ?ilter capacitor point. this pin is used to reduce the noise on an internal biasing point in order to provide the highest performance. it may not be nec- essary to connect this pin, depending on the quality of the layout and grounding used in the application circuit. dvdd ?igital vdd for core. 5 v nominal. odvdd ?igital vdd for all digital outputs. variable from 2.7 v to 5.5 v. dgnd (2) ?igital ground. avdd (3) ?nalog vdd. 5 v nominal. for best results, use a separate regulator for avdd. bypass capacitors should be placed close to the pins and con- nected directly to the analog ground plane. agnd (3) ?nalog ground. for best performance, separate nonoverlapping analog and digital ground planes should be used.
rev. 0 AD1953 ?2 quality of compressed audio. in addition, the main channels have a stereo widening algorithm that increases the perceived spread of the stereo image. most of the signal processing functions are coded using full 48-bit double-precision arithmetic. the input word length is 24 bits, with two extra headroom bits added in the processor to allow internal gains up to 12 db without clipping (additional gains can be accommodated by scaling down the input signal in the first biquad filter section). a graphical user interface (gui) is available for evaluation of the AD1953 (figure 3). this gui controls all of the functions of the chip in a very straightforward and user-friendly interface. no code needs to be written to use the gui to control the chip. for more information on AD1953 software tools, send an email to sigmadsp@analog.com. signal processing signal processing overview figure 2 shows the signal processing flow diagram of the AD1953. the AD1953 is designed to provide all common signal-processing functions commonly used in 2.0 or 2.1 playback systems. a 7- biquad equalizer operates on the stereo input signal. the output of this equalizer is fed to a 2-biquad crossover filter for the main channels, and the mono sum of the left and right equal izer outputs is fed to a 3-biquad crossover filter for the sub channel. each of the three channels has independent delay compensa- tion. there are two high quality compressor/limiters available: one operating on the left/right outputs and one operating on the subwoofer channel. the subwoofer output may be blended back into the left/right outputs for 2.0 playback systems. in this con figuration, the two independent compressor/limiters provide 2-band compression, which significantly improves the sound hpf/ de-emphasis in right in left volume volume phat stereo delay (0 ms?.7ms) delay (0 ms?.7ms) delay (0 ms?.3ms) 8 interpolation dac out left 8 interpolation dac out right volume 1 biquad filter delay (0 ms?.7ms) mono dac l/r reinjection level subwoofer output sub dynamics processor sub channel l/r mix eq and crossover filters l/r dynamics processor level detect, look-up table level detect, look-up table 7 biquad filters 7 biquad filters crossover (2 filters) crossover (2 filters) crossover (3 filters) delay (0 ms?.3ms) hpf/ de-emphasis figure 2. signal processing flow figure 3. graphical user interface
rev. 0 AD1953 ?3 each section of this flow diagram will be explained in detail on the following pages. numeric formats it is common in dsp systems to use a standardized method of specifying numeric formats. to better comprehend issues relat- ing to precision and overflow, it is helpful to think in terms of fractional twos complement number systems. fractional number systems are specified by an a.b format, where a is the number of bits to the left of the decimal point and b is the number of bits to the right of the decimal point. in a twos complement system, there is also an implied offset of one-half of the binary range; for example, in a twos complement 1.23 sys- tem, the legal signal range is ?.0 to (+1.0 ?1 lsb). the AD1953 uses two different numeric formats; one for the coefficient values (stored in the parameter ram) and one for the signal data values. the coefficient format is as follows: coefficient format coefficient format: 2.20 range: ?.0 to (+2.0 ?1 lsb) examples: 1000000000000000000000 = ?.0 1100000000000000000000 = ?.0 1111111111111111111111 = (1 lsb below 0.0) 0000000000000000000000 = 0.0 0100000000000000000000 = 1.0 0111111111111111111111 = (2.0 ?1 lsb) this format is used because standard biquad filters require coefficients that range between +2.0 and ?.0. it also allows gain to be inserted at various places in the signal path. internal dsp signal data format input data format: 1.23 this is sign-extended when written to the data memory of the AD1953. internal dsp signal data format: 3.23 range: ?.0 to (+4.0 ?1 lsb) examples: 10000000000000000000000000 = ?.0 11000000000000000000000000 = ?.0 11100000000000000000000000 = ?.0 11111111111111111111111111 = (1 lsb below 0.0) 00000000000000000000000000 = 0.0 00100000000000000000000000 = 1.0 01000000000000000000000000 = 2.0 01111111111111111111111111 = (4.0 ?1 lsb). the sign-extension between the serial port and the dsp core allows for up to 12 db of gain in the signal path without internal clipping. gains greater than 12 db can be accommodated by scaling the input down in the first biquad filter, and scaling the signal back up at the end of the biquad filter section. a digital clipper circuit is used between the output of the dsp core and the input to the dac - ? modulators to prevent over- loading the dac circuitry (see figure 4). note that there is a gain factor of 0.75 used in the dac interpolation filters, and therefore signal values of up to 1/0.75 will pass through the dsp without clipping. since the dac is designed to produce an analog output of 2 v rms (differential) with a 0 db digital input, signals between 0 db and 1/0.75 (approximately 3 db) will produce larger analog outputs and result in slightly degraded analog per- formance. this extra analog range is necessary in order to pass 0 dbfs square waves through the system, as these square waves cause overshoots in the interpolation filters that would otherwise briefly clip the digital dac circuitry. a separate digital clipper circuit is used in the dsp core to ensure that any accumulator values that exceed the numeric 3.23 format range are clipped when taken from the accumulator. high-pass filter the high-pass filter is a first-order double-precision design. the purpose of the high-pass filter is to remove digital dc from the input. if this dc were allowed to pass, the detectors used in the compressor/limiter would give an incorrect reading for low signal levels. the high-pass filter is controlled by a single parameter (alpha_hpf), which is programmed by writing to spi location 180 in 2.20 twos complement format. the following equation can be used to calculate the parameter alpha_hpf from the ? db point of the filter: alpha hpf exp hpf cutoff f s _. ? _ = ? ? ? ? ? ? 10 20 where exp is the exponential operator, hpf_cutoff is the high-pass cutoff in hz, and f s is the audio sampling rate. the default value for the ? db cutoff of the high-pass filter is 2.75 hz at a sampling rate of 44.1 khz. b0 in out b1 b2 a1 a2 z ? z ? z ? z ? figure 5. biquad filter biquad filters each of the two input channels has seven second-order biquad sections in the signal path. in addition, the left and right chan- nels have two additional biquad filters that may be used either as crossover filters or as additional equalization filters. the sub channel has three additional biquad filters, also to be used as equalization and/or crossover filters. in a typical scenario, the signal processing (3.23 format) serial port dac interpolation filters (3.23 format) digital - modulators (1.23 format) digital clipper data in 2-bit sign extention 0.75 1.23 3.23 figure 4. numeric precision and clipping structure
rev. 0 AD1953 ?4 first seven biquads would be used for speaker equalization and/ or tone controls, and the remaining filters would be programmed to function as crossover filters. note that there is a common equalization section used for both the main and sub channels, followed by crossover filters. this arrangement prevents any interaction from occurring between the crossover filters and the equalization filters. one section of the biquad iir filter is shown in figure 5. this section implements the transfer function: hz bbz bz az a z () = + + () ? () 01 2 11 2 12 12 the coefficients a 1, a 2, b 0, b 1, and b 2 are all in twos comple- ment 2.20 format with a range from ? to (+2 ?1 lsb). the negative sign on the a 1 and a 2 coefficients is the result of adding both the feed-forward ??terms as well as the feedback ? terms. some digital filter packages automatically produce the correct a 1 and a 2 coefficients for the topology of figure 5, while others assume a denominator of the form 1 + a 1 z ? + a 2 z ? . in this case, it may be necessary to invert the a 1 and a 2 terms for proper operation. the biquad structure shown in figure 5 is coded using double- precision math to avoid limit cycles from occurring when low frequency filters are used. the coefficients are programmed by writing to the appropriate location in the parameter ram through the spi port (see table vi). there are two possible scenarios for controlling the biquad filters: 1. dynamic adjustment (for example, bass/treble control or para- metric equalizer) when using dynamic filter adjustment, it is highly recommended that the user employ the safeload mechanism to avoid tempo rary instability when the filters are dynamically updated. this can occur if some, but not all, of the coefficients are updated to new values when the dsp calculates the filter output. the operation of the safeload registers is detailed in the options for param eter updates section. 2. setting static eq curve after power-up if many of the biquad filters need to be initialized after power- up (for example, to implement a static speaker-correction curve), the recommended procedure is to set the processor shutdown bit, wait for the volume to ramp down (about 20 ms), and then write directly to the parameter ram in burst mode. after the ram is loaded, the shutdown bit can be deasserted, causing the volume to ramp back up to the initial value. this entire procedure is click-free and faster than using the safeload mechanism. the datapaths of the AD1953 contain an extra two bits on top of the 24 bits that are input to the serial port. this allows up to 12 db of boost without clipping. however, it is important to remember that it is possible to design a filter that has less than 12 db of gain at the final filter output, but more than 12 db of gain at the output of one or more intermediate biquad filter sections. for this reason, it is important to cascade the filter sections in the correct order, putting the sections with the largest peak gains at the end of the chain rather than at the beginning. this is standard practice when coding iir filters and is covered in basic books on dsp coding. if gains larger than 12 db cannot be avoided, then the coeffi- cients b0 through b2 of the first biquad section may be scaled down to fit the signal into the 12 db maximum signal range, and then scaled back up at the end of the filter chain. volume eight separate spi registers are available to control the volume. three registers are used by the on-board program?ne each for the left, right, and sub channels. these registers are special in that they include automatic digital ramp circuitry for clickless volume adjustment. the volume control word is in 2.20 format, and gains from +2.0 to ?.0 are possible. the default value is 1.0. it takes 1024 audio frames to adjust the volume from 2.0 down to 0; in the normal case where the max volume is set to 1.0, it will take 512 audio frames for this ramp to reach zero. note that a mute command is the same as setting the volume to zero, except that when the part is unmuted, the volume returns to its original value. these volume ramp times assume that the AD1953 is set for the fast volume ramp speed. if the slow setting is selected, it will take 8192 audio frames to reach zero from a setting of 2.0. correspondingly, it will take 4096 frames to reach 0 volume from the normal setting of 1.0. t he volume blocks are placed after the biquad filter sections to maximize the level of the signal that is passed through the filter sections. in a typical situation, the nominal volume setting might be ?5 db, allowing a substantial increase in volume when the user increases the volume. the AD1953 was designed with an analog dynamic range of > 112 db, so that in the typical situation with the volume set to ?5 db, the signal-to-noise ratio at the output will still exceed 97 db. greater output dynamic ranges are possible if the compressor/limiter is used, as the post-compression gain parameter can boost the signal back up to a higher level. in this case, the compressor will prevent the output from clipping when the volume is turned up and the input signal is large. stereo image expander the image-enhancement processing is based on adi? patented phat stereo algorithm. the block diagram is shown in figure 6. 1khz first-order lpf level left in right in left out right out + + figure 6. stereo image expander the algorithm works by increasing the phase shift for low frequency signals that are panned left or right in the stereo mix. since the ear is responsive to interaural phase shifts below 1 khz, this increase in phase shifts results in a widening of the stereo image. note that signals panned to the center are not processed, re su lti ng in a more natural s ound. there a re t wo param eters that control the phat stereo algorithm: the level variable, which controls how much out-of-phase information is added to the left and right channels, and the cutoff frequency of the first -order low-pass filter, which determines the frequency range of the added out-of-phase signals. for best results, the cutoff frequency should be in the range of 500 hz to 2 khz. these parameters are controlled by altering the parameter ram locations that store the parameters spread_level and alpha_spread.
rev. 0 AD1953 ?5 the spread_level is a linear number in 2.20 format that multi plies the processed left-right signal before it is added to or subtracted from the main channels. the parameter alpha_spread is related to the cutoff frequency of the first-order low-pass filter by the equation alpha spread exp spread freq f s _. ? _ = ? ? ? ? ? ? 10 20 where exp is the exponential operator, spread_freq is the low-pass cutoff in hz, and f s is the audio sampling rate. note that the stereo spreading algorithm assumes that frequen cies below 1 khz are present in the main satellite speakers. in some systems, the crossover frequency between the satellite and subwoofer speakers is quite high (> 500 hz). in this case, the stereo spreading algorithm will not be effective, as the frequen cies that contribute to the spreading effect will be coming mostly from the subwoofer, which is a mono source. delay each of the three dac channels has a delay block that allows the user to introduce a delay of up to 165 audio samples. the delay values are programmed by entering the delay (in samples) into the appropriate location of the parameter ram. with a 44.1 khz sample rate, a delay of 165 samples corresponds to a time delay of 3.74 ms. since sound travels at approximately 1 foot/ms, this can be used to compensate for speaker place- ments that are off by as much as 3.74 feet. an additional 100 samples of delay are used in the look-ahead portion of the compressor/limiter, but only for the main two channels. this can be used to increase the total delay for the left and right channels to 265 samples, or 6 ms at 44.1 khz. main compressor/limiter the compressor used in the AD1953 is quite sophisticated and is comparable in many ways to professional compressor/limiters used in the professional audio and broadcast fields. it uses rms/ peak detection with adjustable attack/hold/release, look-ahead compression, and table-based entry of the input/output curve for complete flexibility. the AD1953 uses two compressor/limiters, one in the subwoofer dac and one in the main left/right dac. it is well known that having independent compressors operating over different frequency ranges results in a superior perceived sound. with a single-band compressor, loud bass information will modulate the gain of the entire audio signal, resulting in suboptimal maximum perceived loudness as well as gain pumping or modulation effects. with independent compressors operating separately on the low and high frequencies, this problem is dramatically reduced. if the AD1953 is being operated in 2-channel mode, an extra path is added so that the subwoofer channel can be added back into the main channel. this maintains the advantage of using a 2-band compressor, even in a 2.0 system configuration. figure 7 shows the traditional basic analog compressor/limiter. it uses a voltage controlled amplifier to adjust gain and a feed- forward detector path using an rms detector with adjustable time constants, followed by a nonlinear circuit to implement the desired input/output relationship. a simple compressor will have a single threshold above which the gain is reduced. the amount of compression above the threshold is called the compression ratio and is defined as db change in input/db change in output. for example, if the input to a 2:1 compressor is in creased by 2 db, the output will rise by 1 db for signals above the threshold. a single ?ard?threshold results in more audible behavior than a so-called ?oft-knee?compressor, where the compression is introduced more gradually. in an analog compressor, the soft-knee characteristic is usually made by using diodes in their exponential turn-on region. filter rms detector with db out compression curve non- linear circuits threshold slope vca with exp control out figure 7. analog compressor the best analog compressors use rms detection as the signal amplitude detector. rms detectors are the only class of detec- tors that are not sensitive to the phase of the harmonics in a complex signal. the ear also bases its loudness judgment on the overall signal power. using an rms detector therefore results in the best audible performance. compressors that are based on peak detection, while good for preventing clipping, are generally quite poor when it comes to audible performance. rms detectors have a certain time constant that determines how rapidly they can respond to transient signals. there is always a trade-off between speed of response and distortion. figure 8 shows this trade-off. input waveform compressor envelope fa st time constant compressor envelope slow time constant figure 8. effect of rms time constant on distortion in the case of a fast-responding rms detector, the detector enve- lope will have a signal component in addition to the desired dc component. this signal component (which, for an rms detector, is at twice the input frequency) will result in harmonic distortion when multiplied by this detector signal. the AD1953 uses a modified rms algorithm to improve the relationship between acquisition time and distortion. it uses a peak-riding circuit together with a hold circuit to modify the rms signal, as shown in figure 9. figure 8 shows two envelopesone with the harmonic distortion and another, flatter envelope, which is produced by the AD1953.
rev. 0 AD1953 ?6 input waveform hold time, spi- programmable release time, spi- programmable figure 9. using the hold and release time feature using this idea of a modified rms algorithm, the true rms value is still obtained for all but the lowest frequency signals, while the distortion due to rms ripple is reduced. it also allows th e user to set the hold and release times of the compressor independently. the detector path of the AD1953 is shown in figure 10. the rms detector is controlled by three parameters stored in parameter ram: the rms time constant, the hold time, and the release rate. the log output of the rms detector is applied to a look-up table with interpolation. the higher bits of the rms output form an offset into this table, and the lower bits are used to interpolate between the table entries to form a high precision gain word. the look-up table resides in the parameter ram and is loaded by the user to give the desired curve. the look-up table contains 33 data locations, and the lsb of the address into the look-up table corresponds to a 3 db change in the amplitude of the detec- tor signal. this gives the user the ability to program an input/ output curve over a 99 db range. for the main compressor, the table resides in locations 110 to 142 in the spi parameter ram. look-up table linear interpolation modified rms detector with log output output to gain stage high bits (1lsb = 3db) low bits time constant hold release figure 10. gain derived from interpolated look-up table one subtlety of the table look-up involves the difference between the rms value of a sine wave and that of a square wave. if a full-scale square wave is applied to the AD1953, the rms value of this signal will be 3 db higher than the rms value of a 0 dbfs sine wave. therefore, the table will range from +9 db (location 142) to ?7 db (location 110). the entries in the table are linear gain words in 2.20 format. figure 11 shows an example of the table entries for a simple above-threshold compressor. input level ?3db/table entry output level ?db input level ?3db/table entry linear gain 1.0 desired compression curve figure 11. example of table entry for a given compression curve note that the maximum gain that can be entered in the table is 2.0 (minus 1 lsb). if more gain is required, the entire compression curve may be shifted upward by using the post-compression gain block following the compressor/limiter. the AD1953 compressor/limiter also includes a look-ahead compression feature. the idea behind look-ahead compression is to prevent compressor overshoots by applying some digital delay to the signal before the gain-control multiplier, but not to the detector path. in this way, the detector can acquire the new amplitude of the input signal before the signal actually reaches the multiplier. a comparison of a tone burst fed to a conventional compressor versus a look-ahead compressor is shown in figure 12. conventional compressor gain look-ahead compressor gain hold time figure 12. conventional compression vs. look-ahead c ompression
rev. 0 AD1953 ?7 in the look-ahead compressor, the gain has already been reduced by the time the tone-burst signal arrives at the multiplier input. note that when using a look-ahead compressor, it is im por- tant to set the detector hold time to a value that is at least the same as the look-ahead delay time, or else the compressor release will start too soon, resulting in an expanded ?ail?of a tone burst signal. the complete flow of the left/right dynamics processor is shown in figure 13. look-up table linear interpolation modified rms detector with log output high bits (1lsb = 3db) low bits time constant hold release delay delay spi-programmable look-ahead delay post-compression gain, spi- programmable up to 30db 2 (l+r) figure 13. complete dynamics flow, main channels the detector path works from a sum of left and right channels ((l+r)/2). this is the normal way that compressors are built, and it counts on the fact that the main instruments in any stereo mix are seldom recorded deliberately out of phase, especially in the lower frequencies, which tend to dominate the energy spectrum of real music. the compressor is followed by a block known as post-compression gain. most compressors are used to reduce the dynamic range of music by lowering the gain during loud signal passages. this results in an overall loss of volume. this loss can be made up by introducing gain after the compressor. in the AD1953, the coefficient format used is 2.20, which has a maximum floating- point rep resentation of slightly less than 2.0. this means the maximum gain that can be achieved in a single instruction is 6 db. to get more gain, the program in the AD1953 uses a cascade of five multipliers to achieve up to 30 db of post-compression gain. to program the compressor/limiter, the following formulas may be used to determine the 22-bit numbers (in 2.20 format) to be entered into the parameter ram. rms time constant this can be best expressed by entering the time constant in terms of db/sec raw release rate (without the peak-riding circuit). the attack rate is a rather complicated formula that depends on the change in amplitude of the input sine wave. rms tconst parameter release rate f s __ . . =      10 10 10 0 wh ere r ms_tconst_parameter = fractional number to enter into the spi ram (after converting to 22-bit 2.20 format) release_rate = release rate of the raw rms detector in db/sec. this must be negative. f s = audio sampling rate. rms hold time rms holdtime parameter f hold time s __ int _ = () where rms_holdtime_parameter = integer number to enter into the spi ram f s = audio sample rate hold_time = absolute time to wait before starting the release ramp-down of the detector output int() = integer part of expression rms release rate rms decay parameter rms decay __ int _ / . = () 1 096 where rms_decay_parameter = decimal integer number to enter into the spi ram rms_decay = decay rate in db/sec int() = integer part of expression look-ahead delay lookahead delay parameter lookahead delay f s __ _ = where lookahead_delay = predictive compre ssor delay in abso- lute time f s = audio sample rate the maximum lookahead_delay_parameter value is 100. post-compression gain post compression gain parameter post compression gain linear ___ ___ = () 15 where post_compression gain_linear is the linear post-compression gain ^ = raise to the power subwoofer compressor/limiter the subwoofer compressor/limiter differs from the left/right compressor in the following ways: 1. the subwoofer compressor operates on a weighted sum of left and right inputs (aa left + bb right), where aa and bb are both programmable. 2. the detector input has a biquad filter in series with the input in order to implement frequency-dependent compression thresholds. 3. there is no predictive compression, as presumably the input signals are filtered to pass only low frequencies, and therefore transient overshoots are not a problem. the subwoofer compressor signal flow is shown in figure 14. look-up table linear interpolation modified rms detector with log output high bits (1lsb = 3db) low bits time constant hold release v in _sub = k1  left_in + k2  right_in post-compression gain, spi- programmable up to 30db biquad filter figure 14. signal flow for subwoofer compressor the biquad filter before the detector can be used to implement a frequency-dependent compression threshold. for example, assume that the overload point of the woofer is strongly fre- quency-dependent. in this case, one would have to set the compressor threshold to a value that corresponded to the most sensitive overload frequency of the woofer. if the input signal happened to be mostly in a frequency range where the woofer
rev. 0 AD1953 ?8 was not so sensitive to overload, then the compressor would be too pessimistic and the volume of the woofer would be reduced. if, on the other hand, the biquad filter were designed to follow the woofer excursion curve of the speaker, then the volume of the woofer could be maximized under all conditions. this is illustrated in figure 15. 20hz 200hz freq w oofer excursion biquad response 20hz 200hz freq figure 15. optimizing woofer loudness using the subwoofer rms biquad filter when using a filter in front of the detector, a confusing side- effect occurs. if one measures the frequency response by using a swept sine wave with an amplitude large enough to be above the compressor threshold, the resulting frequency response w ill not look flat. however, this is not real in the sense that, as the sine wave is swept through the system, the gain is being slowly modulated up and down according to the response of the biquad filter in front of the detector. if one measures the response using a pink-noise generator, the result will look much better, as the detector will settle on only one gain value. the perceptual effect of the swept-sine-wave test is not at all what would be pre- dicted by simply looking at the frequency response curve; it is only the signal-path filters that will affect the perception of fre- quency response, not the detector-path filters. de-emphasis filtering the standard for encoding cds allows the use of a pre-emphasis curve during encoding, which must be compensated for by a de-emphasis curve during playback. the de-emphasis curve is defined as a first-order shelving filter with a single pole at (1/(2 50 s)) followed by a single zero at (1/(2 15 s)). this curve may be accurately modeled using a first-order digital filter. this filter is included in the AD1953; it is not part of the bank of biquad filters, and so does not take away from the num- ber of available filters. since the specification of the de-emphasis filter is based on an analog filter, the response of the filter should not depend on the incoming sampling rate. however, when the de-emphasis filter is implemented digitally, the response will scale with the sampling rate unless the filter coefficients are altered to suit each possible input sampling rate. for this reason, the AD1953 includes three separate de-emphasis curves; one each for sampling rates of 32 khz, 44.1 khz, and 48 khz. these curves are selected by writing to bits <5:4> of control register 1 over the spi port. using the sub reinjection paths for systems with no subwoofer many systems will not use a subwoofer, but would still benefit from 2-band compression/limiting. this can be accommodated by using sub reinjection paths in the program flow. these parameters are programmed by entering two numbers (in 2.20 format) into the parameter ram. note that if the biquad filters are not properly designed, the frequency response at the cross- over point may not be flat. many crossover filters are designed to be flat in the sense of adding the powers together, but nonflat if the sum is done in voltage mode. the user must take care to design an appropriate set of crossover filters. interpolation filters the left and right channels have a 128:1 interpolation filter with 70 db stop-band attenuation that precedes the digital - ? modulator. this filter has a group delay of approximately 24.185/f s , where f s is the sampling rate. the sub channel does not use an interpo lation filter. the reason for this (besides saving valuable mips) is that it is expected that the bandwidth of the sub output will be limited to less than 1 khz. with no interpola tion filter, the first ?mage?will therefore be at 43.1 khz (which is f s ? 1 khz, for cd audio). the standard external filter used for both the main and sub channels is a third-order, single op amp filter. if the cutoff frequency of the external subwoofer filter is 2 khz, then there are more than four octaves between 2 khz and the f irst image at 43.1 khz. a third-order filter will roll off by ap proximately 18 db/oct 4 octaves = 72 db attenuation. this is approximately the same as the digital attenua tion used in the main channel filters, so no internal interpolation filter is required to remove the out-of-band images. note that by having interpolation filters in the main channels but not the subwoofer channel, there is a potential time-delay mis- match between the main and sub channels. the group delay of the digital interpolation filters used in the main left/right channels is about 0.5 ms. this must be compared to the group delay of the exte rnal analog filter used in the subwoofer path. if the group delay mismatch causes a frequency response error (when the t wo signals are ?coustically added?, the programmable delay feature can be used to put extra delay in either the subwoofer path or the main left/right path. spi port overview the AD1953 has many different control options. most signal- processing parameters are controlled by writing new values to the parameter ram using the spi port. other functions such as volume and de-emphasis filtering are programmed by writing to spi control registers. the spi port uses a 4-wire interface, consisting of clatch, cclk, cdata, and cout signals. the c latch signal goe s low at the beginning of a transaction and high at the end of a transaction. the cclk signal latches the serial input data on a low-to-high transition. the cdata signal carries the serial input data, and the cout signal is the serial output data. the cout signal remains three-stated until a read operation is requested. this allows other spi compatible p eripherals to share the same readback line. the spi port is capable of full read/write operation for all of the memories (parameter and program) and some of the spi registers (control register 1 and data capture registers). the memories may be accessed in both a single-address mode or in burst mode. all spi transactions follow the same basic format, shown in table i. the wb/r bit is low for a write, and high for a read operation. the 10-bit address word is decoded into a location in one of the two memories (parameter or program) or one of the spi regis- ters. the number of data bytes varies according to the register or memory being accessed. in burst-write mode (available for loading the rams only), an initial address is given followed by a continuous sequence of data for consecutive ram locations.
rev. 0 AD1953 ?9 the detailed data format diagram for continuous-mode opera- tion is given in spi read/write data formats. a sample timing diagram for a single spi write operation to the parameter ram is shown in figure 16. table i. spi word format byte 0 byte 1 byte 2 byte 3 byte 4 00000, r/wb, adr[9:8] adr[7:0] data data data a sample timing diagram of a single spi read operation is shown in figure 17. the cout p in goes from three -state to driven at the beginning of byte 2. bytes 0 and 1 contain the address and r/w bit, and bytes 2 to 4 carry the data. the exact format is shown in tables viii to xix. the AD1953 has several mechanisms for updating signal- processing parameters in real time without causing loud pops or clicks. in cases where large blocks of data need to be downloaded, the dsp core can be shut down and new data loaded, and the core can then be restarted. the shutdown and restart mecha- nisms employ a gradual volume ramp to prevent clicks and pops. in cases where only a few parameters need to be changed (for example, a single biquad filter), a safeload mechanism is used that allows a block of spi registers to be transferred to the parameter ram within a single audio frame while the core is running. the safeload mode uses internal logic to prevent con- tention between the dsp core and the spi port. spi address decoding table ii shows the address decoding used in the spi port. the spi address space encompasses a set of registers and two rams, one for holding signal-processing parameters and one for holding the program instructions. both of the rams are loaded on power-up from on-board boot roms. byte 0 byte 1 byte 4 cdata cclk clatch figure 16. sample of spi write format (single-write mode) byte 0 cdata cclk clatch cout byte 1 hi-z data xxx data data hi-z figure 17. sample of spi read format (single-read mode)
rev. 0 AD1953 ?0 table ii. spi port address decoding spi address register name read/write word length 0?55 parameter ram write: 22 bits read: 22 bits 256 spi control register 1 write: 14 bits read: 2 bits 257 spi control register 2 write: 10 bits read: n/a 258 volume 0 write: 22 bits read: n/a 259 volume 1 write: 22 bits read: n/a 260 volume 2 write: 22 bits read: n/a 261 volume 3 write: 22 bits read: n/a 262 volume 4 write: 22 bits read: n/a 263 volume 5 write: 22 bits read: n/a 264 volume 6 write: 22 bits read: n/a 265 volume 7 write: 22 bits read: n/a 266 data capture (spi out) #1 write: 9-bit program counter value, 2-bit register address read: 24 bits 267 data capture (spi out) #2 write: 9-bit program counter value, 2-bit register address read: 24 bits 268 data capture (serial out) slot 0 write: 9-bit program counter value, 2-bit register address read: n/a 269 data capture (serial out) slot 1 write: 9-bit program counter value, 2-bit register address read: n/a 270 data capture (serial out) slot 2 write: 9-bit program counter value, 2-bit register address read: n/a 271 data capture (serial out) slot 3 write: 9-bit program counter value, 2-bit register address read: n/a 272 data capture (serial out) slot 4 write: 9-bit program counter value, 2-bit register address read: n/a 273 data capture (serial out) slot 5 write: 9-bit program counter value, 2-bit register address read: n/a 274 parameter ram safeload register 0 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 275 parameter ram safeload register 1 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 276 parameter ram safeload register 2 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 277 parameter ram safeload register 3 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 278 parameter ram safeload register 4 write: 8-bit parameter ram address, 22-bit parameter data read: n/a 279?10 unused 511 test register write: 8 bits read: n/a 512?024 program ram write: 35 bits read: 35 bits
rev. 0 AD1953 ?1 control register 1 control register 1 is a 14-bit register that controls data capture modes, serial modes, de-emphasis, mute, power-down, and spi -to-memory transfers. table iii documents the contents of this register. table iv details the two bits in the register? read operation. bits <1:0> set the wordlength, which is used in right-justified serial modes to determine where the msb is located relative to the start of the audio frame. bits <3:2> select one of four serial modes, which are discussed in the serial data input port section. the de-emphasis curve selection bits <5:4> turn on the internal de-emphasis filter for one of three possible sample rates. bit <6>, the soft power-down bit, stops the internal clocks to the dsp core, but does not reset the part. the digital power consumption is reduced to a low level when this bit is asserted. reset can only be asserted using the external reset pin. soft mute (bit <7>) is used to initiate a volume ramp-down sequence. if the initial volume was set to 1.0, this operation will take 512 audio frames to complete. when this bit is deasserted, a ramp-up sequence is initiated until the volume returns to its original setting. the initiate-safe-transfer bit <9> will request a data transfer from the spi safeload registers to the parameter ram. the safeload registers contain address-data pairs, and only those registers that have been written to since the last transfer opera- tion will be uploaded. the user may poll for this operation being complete by reading bit <0> of control register 1. the safeload mechanism section goes into more detail on this feature. bit <10>, the halt program bit, is used to initiate a volume ramp-down followed by a shutdown of the dsp core. the user may poll for this operation being complete by reading bit <1> of control register 1. the data capture serial out mode is controlled with bits <13:12>. this function can be used to send data that is cap- tured using the data-capture feature to external devices such as an external stereo dac or multichannel codec. the data cap- ture registers and outputs section gives more information about the tdm and data capture features. table iii. control register 1 write definition register bits function 13:12 data capture serial out mode control 00 = none 01 = tdm 6-channel out, uses pins 41?3 10 = 2-channel out, uses pin 45 11 = unused 11 unused 10 halt program (1 = halt) 9 initiate safe transfer (1 = transfer) 8 unused 7 soft mute (1 = start mute sequence) 6 soft power-down (1 = power down) 5:4 de-emphasis curve select 00 = none 01 = 44.1 khz 10 = 32 khz 11 = 48 khz 3:2 serial in mode 00 = i 2 s 01 = right-justified 10 = dsp 11 = left-justified 1:0 word length 00 = 24 bits 01 = 20 bits 10 = 16 bits 11 = 16 bits
rev. 0 AD1953 ?2 table iv. control register 1 read definition register bits function 1d sp core shutdown complete 1 = shutdown complete 0 = not shut down 0 safe memory load complete 1 = complete (note: cleared after read) 0 = not complete bit 0 is asserted when all requested safeload registers have been transferred to the parameter ram. it is cleared after the read operation is complete. bit 1 is asserted after the requested shutdown of the dsp is completed. when this bit is set, the user is free to write or read any ram location without causing an audio pop or click. table v. control register 2 write definition register bits function 9v olume ramp speed 1 = 160 ms full-ramp time 0 = 20 ms full-ramp time 8 serial port output enable 1 = enabled 0 = disabled 7:6 serial port input select 00 = in0 01 = in1 10 = in2 11 = na 5:4 mclk input select 00 = mclk0 01 = mclk1 10 = mclk2 11 = na 3r eserved 2 mclk in frequency select 0 = 512 f s 1 = 256 f s 1:0 mclk out frequency select 00 disabled 01 512 f s 10 256 f s 11 mclko = mclk_in (feedthrough) control register 2 table v documents the contents of control register 2. bits <1:0> set the frequency of the mclko pin. if these bits are set to 00, the mclko pin is disabled (default). when set to 01, the mclko pin is set to 512 f s , which is the same as the internal master clock used by the dsp core. when set to 10, this pin is set to 256 f s , derived by dividing the internal dsp clock by 2. in this mode, the output 256 f s clock will be inverted with respect to the input 256 f s clock. this is not the case with the feedthrough mode. w hen set to 11, the mclko pin mirrors the selected mclk input pin (it? the output of the mclk mux selector). note that the internal dsp master clock may either be the same as the selected mclk pin (when mclk frequency s elect is set to 512 f s mode) or may be derived from the mclk pin usin g internal clock doubler (when mclk fre- quency select is set to 256 f s ) . bit <2> selects one of two possible mclk input frequencies. when set to 0 (default), the mclk frequency is set to 512 f s . in thi s mode, the internal dsp clock and the external mclk are at the same frequency. when set to 1, the mclk frequency is set to 256 f s , and an internal clock doubler is used to generate the dsp clock. bits <5:4> select one of three clock input sources using an inter- nal mux. to avoid click and pop noises when switching mclk sources, it is recommended that the user put the dsp core in shutdown before switching mclk sources. bits <7:6> select one of three serial input sources using an inter- nal mux. each source selection includes a separate sdata, lrclk, and bclk input. to avoid click and pop noises when switching serial sources, it is recommended that the user put the dsp core in shutdown before writing to these bits. bit <8> is used to enable the three serial output pins. these pins are connected to the output of the serial input mux, which is set by bits <7:6>. the default is 0 (disabled). bit <9> changes the default setting of the volume ramp speed. when set to 0, it will take 1024 lrclk periods to go from full volume (6 db) to infinite attention. when set to 1, the same operation will take 8192 lrclk periods.
rev. 0 AD1953 ?3 volume registers the AD1953 contains eight 22-bit volume registers, one each for the left, right, and subwoofer channels and an additional five registers to be used by custom programs used in multichannel applications. these registers are special because when the volume is changed from an initial value to a new value, a linear ramp is used to interpolate between the two values. this feature prevents audible clicks and pops when changing volume. the ramp is set so that it takes 512 audio frames to decrement from a volume of 1.0 (default) down to 0 (muted). the volume registers are for- m atted in 2.20 twos complement, meaning that 010000000 0000000000000 is interpreted as 1.0. negative values can also be written to the volume register, causing an inversion of the signal. negative values work as ex pected with the ramp feature; to go from +1.0 to ?.0 will take 1024 lrclks, and the volume will pass through 0 on the way. parameter ram contents table vi shows the contents of the parameter ram. the parameter ram is 22 bits wide and occupies spi addresses 0?55. the low addresses of the ram are used to control the biquad filters. there are 22 biquad filters in all, and each biquad has five coefficients, resulting in a total memory usage of 110 coefficients. there are also two tables of 33 coefficients each that define the main and sub compressor input/output characteristics. these are loaded with 1.0 on power-up, resulting in no compression. other ram entries control other compressor characteristics, as well as delay and spatialization settings. the parameter ram is initialized on power-up by an on-board boot rom. the default values (shown in the table) yield no equalization, no compression, no spatialization, no delay, and ?ormal?detector time constants in the compressor sections. the functionality of the AD1953 on power-up is basically that of a normal audio dac with no signal-processing capability. the data format of the parameter ram is twos complement 2.20 format. this means that the coefficients may range from +2.0 (? lsb) to ?.0, with 1.0 represented by the binary word 0100000000000000000000. table vi. parameter ram contents default value in fractional address function 2.20 format 0 iir0 left b0 1.0 1 iir0 left b1 0 2 iir0 left b2 0 3 iir0 left a1 0 4 iir0 left a2 0 5 iir1 left b0 1.0 6 iir1 left b1 0 7 iir1 left b2 0 8 iir1 left a1 0 9 iir1 left a2 0 10 iir2 left b0 1.0 11 iir2 left b1 0 12 iir2 left b2 0 13 iir2 left a1 0 14 iir2 left a2 0 15 iir3 left b0 1.0 16 iir3 left b1 0 17 iir3 left b2 0 18 iir3 left a1 0 19 iir3 left a2 0 20 iir4 left b0 1.0 21 iir4 left b1 0 22 iir4 left b2 0 23 iir4 left a1 0 24 iir4 left a2 0 25 iir5 left b0 1.0 26 iir5 left b1 0 27 iir5 left b2 0 28 iir5 left a1 0 29 iir5 left a2 0 30 iir6 left b0 1.0 31 iir6 left b1 0 32 iir6 left b2 0 33 iir6 left a1 0 34 iir6 left a2 0 35 iir0 right b0 1.0 table vi. parameter ram contents (continued) default value in fractional address function 2.20 format 36 iir0 right b1 0 37 iir0 right b2 0 38 iir0 right a1 0 39 iir0 right a2 0 40 iir1 right b0 1.0 41 iir1 right b1 0 42 iir1 right b2 0 43 iir1 right a1 0 44 iir1 right a2 0 45 iir2 right b0 1.0 46 iir2 right b1 0 47 iir2 right b2 0 48 iir2 right a1 0 49 iir2 right a2 0 50 iir3 right b0 1.0 51 iir3 right b1 0 52 iir3 right b2 0 53 iir3 right a1 0 54 iir3 right a2 0 55 iir4 right b0 1.0 56 iir4 right b1 0 57 iir4 right b2 0 58 iir4 right a1 0 59 iir4 right a2 0 60 iir5 right b0 1.0 61 iir5 right b1 0 62 iir5 right b2 0 63 iir5 right a1 0 64 iir5 right a2 0 65 iir6 right b0 1.0 66 iir6 right b1 0 67 iir6 right b2 0 68 iir6 right a1 0 69 iir6 right a2 0 70 iir0 xover left b0 1.0 71 iir0 xover left b1 0
rev. 0 AD1953 ?4 table vi. parameter ram contents (continued) default value in fractional address function 2.20 format 72 iir0 xover left b2 0 73 iir0 xover left a1 0 74 iir0 xover left a2 0 75 iir1 xover left b0 1.0 76 iir1 xover left b1 0 77 iir1 xover left b2 0 78 iir1 xover left a1 0 79 iir1 xover left a2 0 80 iir0 xover right b0 1.0 81 iir0 xover right b1 0 82 iir0 xover right b2 0 83 iir0 xover right a1 0 84 iir0 xover right a2 0 85 iir1 xover right b0 1.0 86 iir1 xover right b1 0 87 iir1 xover right b2 0 88 iir1 xover right a1 0 89 iir1 xover right a2 0 90 iir0 xover sub b0 1.0 91 iir0 xover sub b1 0 92 iir0 xover sub b2 0 93 iir0 xover sub a1 0 94 iir0 xover sub a2 0 95 iir1 xover sub b0 1.0 96 iir1 xover sub b1 0 97 iir1 xover sub b2 0 98 iir1 xover sub a1 0 99 iir1 xover sub a2 0 100 iir2 xover sub b0 1.0 101 iir2 xover sub b1 0 102 iir2 xover sub b2 0 103 iir2 xover sub a1 0 104 iir2 xover sub a2 0 105 iir sub rms b0 1.0 106 iir sub rms b1 0 107 iir sub rms b2 0 108 iir sub rms a1 0 109 iir sub rms a2 0 table vi. parameter ram contents (continued) default value in fractional address function 2.20 format 110?42 main compressor 1.0 (all) look-up table base 143 main compressor 5.75  10 ? attack/rms time (120 db/sec) constant 144 main post-compressor 1.0 gain 145?77 subwoofer compressor 1.0 (all) look-up table base 178 sub compressor 5.75  10 ? attack/rms time (120 db/sec) constant 179 post-compressor 1.0 gain (sub) 180 high-pass filter 3.92  10 ? cutoff frequency 181 main compressor 0 look-ahead delay 182 delay left 0 183 delay right 0 184 delay sub 0 185 stereo spreading 0 coefficient 186 stereo spreading 0.112694 frequency control 187 subwoofer reinjection 0.0 to main left 188 subwoofer reinjection 0.0 to main right 189 subwoofer channel 0.5 input gain from left in 190 subwoofer channel 0.5 input gain from right in 191 main detector hold time, 0 1 samples (4095 max) 192 sub detector hold time, 0 1 samples (4095 max) 193 main detector decay time 0x3fffff (4.597  10 6 db/sec) 1, 2 194 sub detector decay time 0x3fffff (4.597  10 6 db/sec) 1, 2 notes 1 the detector hold and decay times are integer values, while the rest of the parameters are fractional twos complement values. 2 the default decay time of the hold/release circuit is set fast enough that the decay is dominated by the time constant of the r ms detector. options for parameter updates the parameter and program rams can be written and read using one of several methods. 1. direct read/write. this method allows direct access to the rams. since the rams are also being used during real-time dsp operation, a glitch will likely occur at the output. this method is not recommended. 2. direct read/write after core shutdown. this method avoids the glitch while accessing the internal rams by first shutting down the core. this is recommended for transferring large amounts of data, such as initializing the parameter ram at power-up or downloading a completely new program. these transfers can be sped up by using burst mode, where an initial address followed by blocks of data are sent to the ram. 3. safeload writes up to five spi registers are loaded with ad dress/data intended for the parameter ram. the data is then transferred to the requested address when the ram is not busy. this method can be used for dynamic updates while live program material is playing through the AD1953. for ex ample, a complete update of one biquad section can occur in one audio frame while the ram is not busy. this method is not available for writing to the program ram or control registers. the next section discusses these options in more detail.
rev. 0 AD1953 ?5 soft shutdown mechanism when writing large amounts of data to the program or parameter ram, the processor core should be halted to prevent unpleasant noises from appearing at the audio output. figure 18 shows a graphical representation of this mechanism? volume envelope. points a to d are referenced in the following description. bit <10> in serial control register 0 (processor shutdown bit) will shut down the processor core. when the processor shutdown bit is asserted (a), an automatic volume ramp-down sequence (b) lasting from 10 ms to 20 ms will occur, followed by a shutdown of the core. this method of shutting down the core prevents pops or clicks from occurring. after the shutdown is complete, bit <1> in control register 1 will be set. the user can either poll for this bit to be set, or just wait for a period longer than 20 ms. once the core is shut down (c), the parameter or program rams may be written or read freely. to ease the transfer of large blocks of sequential data, a block transfer mode is supported where a starting address followed by a stream of data is sent to the memory. the address into the memory will be automatically incremented for each new write. this mode is documented in the spi data format section of this data sheet. once the data has been written, the shutdown bit can be cleared (d). the processor then will initiate a volume ramp-up sequence lasting 10 ms to 20 ms. again, this reduces the chance that any pop or click noise will occur. note that this shutdown sequence assumes the part is set to the fast volume ramp speed (control register 2, bit <9>). if the slow ramp speed is set, the volume may not reach zero before the part enters shutdown, and a click or pop may be heard. safeload mechanism many applications require real-time control of filter characteristics, such as bass/treble controls and parametric or graphic equaliza- tion. to prevent instability from occurring, all of the parameters of a particular biquad filter must be updated at the same time; otherwise, the filter could execute for one or two audio frames with a mixture of old and new coefficients. this mix of old and new could cause temporary instability, leading to transients that could take a long time to decay. the method used in the AD1953 to eliminate this problem is to load a set of five registers in the spi port with the desired param- eter ram address and data. five registers are used because each biquad filter has five coefficients. once these registers are loaded, the initiate safe transfer bit in spi control register 1 is set. once this bit is set, the processor waits for a period of time in the program sequence when the parameter ram is not being accessed for at least five consecutive instruction cycles. when the program counter reaches this point, the parameter ram is written with five new data values at addresses corresponding to those entered in the safeload registers. when the operation is complete, bit 0 of control register 1 is set. this bit may be polled by the external microprocessor until a 1 is read. this bit will be reset on a read operation. the polling operation is not required; the safeload mechanism guarantees that the transfer will be complete within one audio frame. the safeload logic automatically sends only those safeload regis- ters that have been written to since the last safeload operation. for example, if only two parameters are to be sent, it is only necessary to write to two of the five safeload registers. when the request safe transfer bit is asserted, only those two registers will be sent; the other three registers are not sent, and can still hold old or invalid data. the safeload mechanism is not limited to uploading biquad coefficients; any set of five values in the parameter ram may be updated in the same way. this allows real-time adjustment of the compressor/limiter, delay, or stereo spreading blocks. summary of ram modes table vii shows the sizes and available modes of the parameter ram and the program ram. ad c b figure 18. recommended sequences for complete parameter or program ram upload using shutdown mechanism table vii. read/write modes memory size spi address range read write burst mode available write modes parameter ram 256 22 0?55 yes yes yes direct write, write after core shutdown, safeload write program ram 512 35 512?023 yes yes yes direct write, write after core shutdown
rev. 0 AD1953 ?6 table viii. parameter ram read/write format (single address) byte 0 byte 1 byte 2 byte 3 byte 4 00000, r/wb, adr[9:8] adr[7:0] 00, param[21:16] param[15:8] param[7:0] adr byte 5 byte 8 byte 6 byte 9 byte 7 byte 10 adr + 1 adr + 2 table ix. parameter ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3 byte 4 00000, r/wb, adr[9:8] adr[7:0] 00, param[21:16] param[15:8] param[7:0] table x. program ram read/write format (single address) byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 00000, r/wb, adr[9:8] adr[7:0] 00000, prog[34:32] prog[31:24] prog[23:16] prog[15:8] prog[7:0] table xi. program ram block read/write format (burst mode) byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 00000, r/wb, adr[9:8]adr[7:0] 00000, prog[34:32] prog[31:24] prog[23:16] prog[15:8] prog[7:0] adr byte 7 byte 12 byte 8 byte 13 byte 9 byte 14 byte 10 byte 15 byte 11 byte 16 adr + 1 adr + 2 table xii. spi control register 1 write format byte 0 byte 1 byte 2 byte 3 00000, r/wb, adr[9:8] adr[7:0] 00, bit[13:8] bit[7:0] table xiii. spi control register 1 read format byte 0 byte 1 byte 2 00000, r/wb, adr[9:8] adr[7:0] 000000, bit[1:0] table xiv. spi control register 2 write format byte 0 byte 1 byte 2 byte 3 00000, r/wb, adr[9:8] adr[7:0] 000000, bit[9:8] bit[7:0] table xv. spi volume register write format byte 0 byte 1 byte 2 byte 3 byte 4 000000, adr[9:8] adr[7:0] 00, volume[21:16] volume[15:8] volume[7:0] spi read/write data formats the read/write formats of the spi port are designed to be byte- oriented. this allows for easy programming of common microcontroller chips to fit into a byte-oriented format; 0s are appended to the data fields to extend the data-word to the next multiple of eight bits. for example, 22-bit words written to the spi parameter ram are appended with two leading zeros to reach 24 bits ( three bytes), and 35-bit words w ritten to the program ram are appended with five zeros to reach 40 bits ( five bytes). these zero-extended data fields are appended to a 2-byte field consisting of a read/write bit and a 10-bit address. the spi port knows how many data bytes to expect based on the address that is received in the first two bytes. the total number of bytes for a single-location spi write command can vary from four bytes (for a c ontrol register write), to seven bytes (for a program ram write). block writes may be used to fill contiguous locations in program ram or parameter ram.
rev. 0 AD1953 ?7 table xvi. data capture register write format byte 0 byte 1 byte 2 byte 3 00000, r/wb, adr[9:8] adr[7:0] 00000, progcount[8:6] 1 progcount[5:0], regsel[1:0] 1, 2 notes 1. progcount[8:0] = value of program counter where trap occurs (see table xxi). 2. regsel[1:0] selects one of four registers (see data capture register section). table xvii. data_capture_serial out register (address and register select) write format byte 0 byte 1 byte 2 byte 3 00000, r/wb, adr[9:8] adr[7:0] 00000, progcount[8:6] 1 progcount[5:0], regsel[1:0] 1, 2 notes 1. progcount[8:0] = value of program counter where trap occurs (see table xxi). 2. regsel[1:0] selects one of four registers (see data capture registers section). table xviii. data capture read format byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 00000, r/wb, adr[9:8] adr[7:0] 00000000 data[23:16] data[15:8] data[7:0] table xix. safeload register write format byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 00000, r/wb, adr[9:8] adr[7:0] paramadr[7:0] 00, param[21:16] param[15:8] param[7:0] initialization power-up sequence the AD1953 has a built-in power-up sequence that initializes the contents of all internal rams. during this time, the contents of the internal program boot rom are copied to the internal program ram, and likewise the spi param eter ram is filled with values from its associated boot rom. the data memories are also cleared during this time. the boot sequence lasts for 1024 mclk cycles and starts on the rising edge of the resetb pin. since the boot sequence requires a stable master clock, the user should avoid writing to or reading from the spi registers during this period of time. note that the default power-on state of the internal clock mode circuitry is 512 f s , or about 24 mhz for normal audio sample rates. this mode bypasses all the internal clock doublers and allows the external master clock to directly operate the dsp core. if the external master clock is 256 f s , the boot sequence will operate at this reduced clock rate and take slightly longer to complete. after the boot sequence has finished, the clock modes may be set via the spi port. for example, if the external master clock frequency is 256 f s clock, the boot sequence would take 1024 256 f s clock cycles to complete, after which an spi write could occur to put the AD1953 in 256 f s mode. the default state of the mclk input selector is mclk0. since this input selector is controlled using the spi port, and the spi port cannot be written to until the boot sequence is complete, there must be a stable master clock signal present on the mclk0 pin at startup. setting the clock mode the AD1953 contains a clock doubler circuit that is used to generate an internal 512 f s clock when the external clock is 256 f s . the clock mode is set by writing to bit <2> of control register 2. when the clock mode is changed, it is possible that a glitch will occur on the internal mclk signal. this may cause the proces- sor to inadvertently write an incorrect value into the data ram, which could cause an audio pop or click sound. to prevent this, it is recommended that the following procedure be followed: 1. assert the soft power-down bit (bit <6> in control register 1) to stop the internal mclk. 2. write the desired clock mode into bit <2> of control register 2. 3. wait at least 1 ms while the clock doublers settle. 4. deassert the soft power-down bit. an alternative procedure is to initiate a soft shutdown of the processor core by writing a 1 to the halt program bit in con trol register 1. this initiates a volume ramp-down sequence followed by a shutdown of the dsp core. once the core is shut down (which can be verified by reading bit <1> from control register 1, or by waiting at least 20 ms), the new clock mode can be programmed by writing to bit <2> of control register 2. the dsp core can then be restarted by clearing the halt program bit in control register 1.
rev. 0 AD1953 ?8 setting the data and mclk input selectors the AD1953 contains input selectors for both the serial data inputs as well as the mclk input. this allows the AD1953 to select a variety of input and clock sources with no external hard- ware required. these input selectors are controlled by writing to spi control register 2. when the data source or mclk source is changed by writing to the spi port, it is possible that a pop or click will occur in the audio. to prevent this noise, the core should be shut down by writing a 1 to the ?alt program?bit in control register 1. this initiates a volume ramp-down sequence followed by a shutdown of the dsp core. once the core is shut down (which can be verified by reading bit <1> from control register 1, or by wait- ing at least 20 ms after the halt program command is issued), the new data or mclk source can be programmed by writ- ing to control register 2. the dsp core can then be restarted by clearing the ?alt-program?bit in control register 1. data capture registers and outputs the AD1953 incorporates a feature called ?ata capture.?using this feature, any node in the signal processing flow may be sent either to an spi-readable register, to a dedicated serial output pin (2-channel output), or to a set of dual-function pins (6-channel tdm mode). this allows the basic functionality of the AD1953 to be extended to a larger number of channels, or alternatively it can be used to monitor and display information about signal levels or compressor/limiter activity. the AD1953 contains eight independent data capture registers. the data capture spi out registers are used for reading back internal dsp signals over the spi port. these registers can be used for a variety of purposes. one example might be to access the db output of the internal rms detector, to run a front-panel signal level display. the remaining data capture registers are used to output internal dsp signals to external dacs, codecs, or dsp chips. there are two possible output modes, detailed in the following table. table xx. data capture/tdm mode settings dmuxo/tdmo, control dcsout lrmuxo/tdmfs, reg 1, bits control reg pin (45) bmuxo/tdmbc <13:12> 2, bit <8> functions pin functions 00 0 off off 00 1 off serial mux output 01 don? care off tdm data capture outputs and clocks, 6-channel output 10 0 on, 2- off channel output. 10 1 on, 2- serial mux output channel output. in tdm output mode, the serial mux out multifunction pins (41?3) are used to output 6-channel tdm data, bclk, and frame sync signals. in 2-channel output mode, the data appears on pin 45, and can be used with the bclk and lrclk signals that are already present on the serial input pins. the data will be formatted in the same way as the input data. the data cap- ture feature is primarily intended to feed signals to external dacs, dsps, or codecs, such as the ad1836, in order to extend the number of channels that the internal dsp can access. for each of the data capture registers, a capture count and a register select must be set. the capture count is a number between 0 and 511 that corresponds to the program step number where the capture will occur. the register-select field programs one of four registers in the dsp core that will be transferred to the data capture register when the program counter equals the capture count. the register select field is decoded as follows: 00: multiplier output (mult_out) 01: output of db conversion block (db_out) 10: multiplier data input (mdi) 11: multiplier coefficient input (mci) the capture count and register select bits are set by writing to one of the four data capture registers at the following spi addresses: 266: spi data capture setup register 1 267: spi data capture setup register 2 268: data capture serial out setup register 0 269: data capture serial out setup register 1 270: data capture serial out setup register 2 271: data capture serial out setup register 3 272: data capture serial out setup register 4 273: data capture serial out setup register 5 the format of the captured data varies according to the register select fields. data captured from the mult_out setting is in 1.23 twos complement format, so that a full-scale input signal will produce a full-scale digital output (assuming no processing). if the parameters are set such that the input-to-output gain is more than 0 db, then the digital output will be clipped. data captured from the db_out setting is in 5.19 format, where the actual rms db level is equal to ?7 + (3 d b_out). in this equation, db_out is the value that is captured. it follows that in this data format, the actual output readings will range from ?7 db to +9 db. the AD1953 uses the convention that 0 db is the rms value of the full-scale digital signal. data captured using the mdi setting is in 3.21 format. a 0 db digital input will produce a ?2 db digital output, assuming the AD1953 is set for no processing. data captured using the mci setting is in 2.20 format. this data is generally a signal gain or filter coefficient, and therefore it does not make sense to talk about the input-to-output gain. a coeffi- cient of 0100000000000000000000 corresponds to a gain of 1.0. the data that must be written to set up the data capture is a concatenation of the 9-bit program count index with the 2-bit register select field. the spi capture registers can be accessed by reading from spi locations 266 (for spi capture register 1) or 267 (for spi capture register 2). the other six data capture registers (data capture serial-out) automatically transfer their data to either the data capture serial out (dcsout) pin in 2-channel mode or the dmuxo/tdmo pin in tdm mode. in 2-channel mode, dcsout capture register 1 is present in the left data slot (as defined by the serial input format) and dcsout capture regis- ter 2 is present in the right data slot.
rev. 0 AD1953 ?9 table xxi. data capture trap indexes and register select program count signal description index (9 bits) register select (2 bits) numeric format hpf out left 15 mult_out 1.23, clipped hpf out right 259 mult_out 1.23, clipped de-emphasis out left 19 mult_out 1.23, clipped de-emphasis out right 263 mult_out 1.23, clipped left biquad 0 output 34 mult_out 1.23, clipped left biquad 1 output 43 mult_out 1.23, clipped left biquad 2 output 52 mult_out 1.23, clipped left biquad 3 output 61 mult_out 1.23, clipped left biquad 4 output 70 mult_out 1.23, clipped left biquad 5 output 79 mult_out 1.23, clipped left biquad 6 output 88 mult_out 1.23, clipped right biquad 0 output 284 mult_out 1.23, clipped right biquad 1 output 293 mult_out 1.23, clipped right biquad 2 output 302 mult_out 1.23, clipped right biquad 3 output 311 mult_out 1.23, clipped right biquad 4 output 320 mult_out 1.23, clipped right biquad 5 output 329 mult_out 1.23, clipped right biquad 6 output 338 mult_out 1.23, clipped volume out left 114 mult_out 1.23, clipped volume out right 111 mult_out 1.23, clipped volume out sub 459 mult_out 1.23, clipped phat stereo out left 115 mult_out 1.23, clipped phat stereo out right 112 mult_out 1.23, clipped delay output left 190 mult_out 1.23, clipped delay output right 361 mult_out 1.23, clipped main compressor rms out (db) 154 d b_o ut 24-bit positive binary, bit <19> corresponds to a 3 db change main compressor gain reduction 165 mci 2.22, 2 lsb = 0 (linear) look-ahead delay output left 165 mdi 3.21, 2 lsbs truncated look-ahead delay output right 178 mdi 3.21, 2 lsbs truncated main compressor out left 175 mult_out 1.23, clipped main compressor out right 188 mult_out 1.23, clipped interpolator input left 191 mult_out 1.23, clipped (includes sub reinject) interpolator input right 362 mult_out 1.23, clipped (includes sub reinject) sub channel filter input 430 mult_out 1.23, clipped sub xover biquad 0 output 438 mult_out 1.23, clipped sub xover biquad 1 output 447 mult_out 1.23, clipped sub xover biquad 2 output 456 mult_out 1.23, clipped left xover biquad 0 output 99 mult_out 1.23, clipped left xover biquad 1 output 108 mult_out 1.23, clipped right xover biquad 0 output 349 mult_out 1.23, clipped right xover biquad 1 output 358 mult_out 1.23, clipped sub delay output 511 mult_out 1.23, clipped sub rms biquad output 467 mult_out 1.23, clipped sub rms output (db) 489 db_out 24-bit positive binary, bit <19> corresponds to a 3 db change sub compressor gain (linear) 495 mci 2.22, 2 lsb = 0 sub channel output 511 mult_out 1.23, clipped
rev. 0 AD1953 ?0 serial data input/output ports the AD1953? flexible serial data input port accepts data in twos complement, msb first format. the left channel data field always precedes the right channel data field. the serial mode is set by using mode select bits in the spi control register. in all modes except for the right-justified mode, the serial port will accept an arbitrary number of bits up to a limit of 24 (extra bits will not cause an error, but they will be truncated internally). in the right- justified mode, spi control register bits are used to set the word length to 16, 20, or 24 bits. the default on power-up is 24-bit mode. proper operation of the right-justified mode requires that there be exactly 64 bclk per audio frame. serial data input/output modes figure 19 shows the serial input modes. for the left-justified mode, lrclk is high for the left channel, and low for the right channel. data is sampled on the rising edge of bclk. the msb is left-justified to an lrclk transition, with no msb delay. the left-justified mode can accept any word length up to 24 bits. in i 2 s mode, lrclk is low for the left channel and high for the right channel. data is valid on the rising edge of bclk. the msb is left-justified to an lrclk transition but with a single bclk period delay. the i 2 s mode can be used to accept any number of bits up to 24. in right-justified mode, lrclk is high for the left channel and low for the right channel. data is sampled on the rising edge of bclk. the start of data is delayed from the lrclk edge by 16, 12, or 8 bclk intervals, depending on the selected wor d length. the default word length is 24 bits; other word lengths are set by writing to bits <1:0> of control register 1. in right-justified mode, it is assumed that there are 64 bclks per frame. right channel left channel lrclk bclk sdata lsb lsb lsb lsb lsb lsb lsb lsb left channel right channel lrclk bclk sdata lrclk bclk sdata lrclk bclk sdata dsp mode ?16 bits to 24 bits per channel notes 1. dsp mode doesn? identify channel 2. lrclk normally operates at f s except dsp mode, which is 2 f s 3. bclk frequency is normally 64 lrclk but may be operated in burst mode i 2 s mode ?16 bits to 24 bits per channel right-justified mode ?select number of bits per channel 1/ f s left-justified mode ?16 bits to 24 bits per channel msb msb msb msb msb msb msb msb figure 19. serial input modes
rev. 0 AD1953 ?1 for the dsp serial port mode, lrclk must pulse high for at least one bit clock period before the msb of the left channel is valid, and lrclk must pulse high again for at least one bit clock period before the msb of the right channel is valid. data is sampled on the falling edge of bclk. the dsp serial port mode can be used with any word length up to 24 bits. in this mode, it is the responsibility of the dsp to ensure that the left data is transmitted with the first lrclk pulse, and that syn- chronism is maintained from that point forward. the tdm data capture output mode is shown in figure 20. using this mode allows six channels of serial data to be sent to an external dac, allowing the potential for nine total audio channels. the frame clock is low for the first 128 bclks (the first three data channels), and is then high for the final 128 bclks. each data slot, which is 32 bclk periods wide, con- tains one data-word in an i 2 s-like format, with the msb delayed by one bclk period. in this format, data is valid on the rising edge of the bclk. bmuxo/ tdmbc dmuxo/ tdmo 256bclks 32bclks 32bclks 32bclks 32bclks 32bclks 32bclks lrclk bclk data slot 0 slot 1 slot 2 slot 3 slot 4 slot 5 msb msb-1 msb-2 lrmuxo/ tdmfs figure 20. tdm data capture output format digital control pin mute the AD1953 offers two methods of muting the analog output. by asserting the mute signal high, the left, right, and sub channels are muted. as an alternative, the user can assert the mute bit in the serial control register high. the AD1953 has been designed to minimize pops and clicks when muting and unmuting the device by automatically ramping the gain up or down. when the device is unmuted, the volume returns to the value set in the volume register. analog output section figure 21 shows the block diagram of the analog output section. a series of current sources is controlled by a digital - ? modulator. depending on the digital code from the modulator, each current source is connected to the summing junction of either a positive i-to-v converter or a negative i-to-v converter. two extra current sources that push instead of pull are added to set the midscale common-mode voltage. all current sources are derived from the vref input pin. the gain of the AD1953 is directly proportional to the magnitude of the current sources, and therefore the gain of the AD1953 is proportional to the voltage on the vref pin. with vref set to 2.5 v, the gain of the AD1953 is set to provide signal swings of 2 v rms differential (1 v rms from each pin). this is the recom- mended operating condition. switched current sources out+ out i ref i ref ?dig_in i ref + dig_in vref in from digital - modula- t or (dig_in) bias i ref figure 21. internal dac analog architecture when the AD1953 is used to drive an audio power amplifier and the compression feature is being used, the vref voltage should be derived by dividing down the supply of the amplifier. this sets a fixed relationship between the digital signal level (which is the only information available to the digital compres sor) and the full-scale output of the amplifier (just prior to the onset of clipping). for example, if the amplifier power supply drops by 10%, the vref input to the amplifier will also drop by 10%, which will reduce the analog output signal swing by 10%. the compressor will therefore be effective in prevent ing clipping regardless of any variation in amplifier supply voltage. since the vref input effectively multiplies the signal, care must be taken to ensure that no ac signals appear on this pin. this can be accomplished by using a large decoupling capacitor in the vref external resistive divider circuit. if the vref signal is derived by dividing the 5 v analog supply, the time con stant of the divider must effectively filter any noise on the supply. if the vref signal is derived from an unregulated pow er-amplifier supply, the time constant must be longer, as the ripple on the amplifier supply voltage will presumably be greater than in the case of the 5 v supply. the AD1953 should be used with an external third-order filter on each output channel. the circuits shown in figures 22, 23, and 24 com bine a third-order filter and a single-ended-to- differential converter in the same circuit. the values used in the main chan nel (figure 22) are for a 100 khz bessel filter, and those used in the subwoofer channel (figure 23) result in a 10 khz bessel filter. the lower frequency filter is used on the subwoofer output because there is no digital interpolation filter used in the subwoofer signal path. when calculating the resistor values for the filter, it is important to take into account the output resis tance of the AD1953, which is nominally 60 ? . for best distortion performance, 1% resistors should be used. the reason for this is that the single-ended performance of the AD1953 is about 80 db. the degree to which the single-ended distortion cancels in the final output is determined by the com- mon-mode rejection of the external analog filter, which in turn depends on the tolerance of the components used in the filter.
rev. 0 AD1953 ?2 the sub output of the AD1953 has a lower drive strength than the left and right output pins ( 0.25 ma peak versus 0.5 ma peak for the left and right outputs). for this reason, it is best to use higher resistor values in the external sub filter. figure 24 shows a recommended filter design for the subwoofer output pins used as a full-bandwidth channel in a custom-designed program. this design is also a 100 khz bessel filter. for best performance, a large (> 10 f) capacitor should be connected between the filtcap pin and analog ground. this pin is connected to an internal node in the bias generator, and by adding an external capacitance to this pin, the thermal noise of the left/right channels is minimized. the sub channel is not affected by this connection. 1.50k 3.01k 2.80k 2.7nf 499 1.00k 806 1nf 820pf 270pf 2.2nf 549 ?input + input out figure 22. recommended external analog filter for main channels graphical custom programming tools custom programming tools are available for the AD1953 from adi. these graphical tools allow the user to modify the default signal processing flow by individually placing each block (e.g., biquad filter, phat stereo, dynamics processor) and connecting them in any desired fashion. the program then creates a file that is loaded into the AD1953? program ram. all of the contents of the parameter ram can also be set using these tools. for more information on these programming tools, email sigmadsp@analog.com. 3.01k 11k 11k 56nf 1.5k 5.62k 5.62k 27nf 15nf 6.8nf 220nf 604 ?input + input out 560nf 270nf 68pf 150pf 2.2nf figure 23. recommended external analog filter for sub channel 3.01k 11k 11k 56nf 1.5k 5.62k 5.62k 27nf 604 ?input + input out 68pf 150pf 2.2nf figure 24. recommended external analog filter for full bandwidth signals on the sub channel output
rev. 0 AD1953 ?3 appendix cookbook formulae for audio eq biquad coefficients (adapted from robert bristow-johnson? internet posting) for designing a parametric eq, follow the steps below. 1. given: frequency q db_gain sample_rate 2. compute intermediate variables a = 10^(db_gain/40) omega = 2 frequency/sample_rate sn = sin(omega) cs = cos(omega) alpha = sn/(2 q) 3. compute coefficients b0 = (1 + a alpha)/(1 + (alpha/a)) b1 = ? cs/(1 + (alpha/a)) b2 = (1 ?(alpha/a))/(1 + (alpha/a)) a1 = 2 cs/(1 + (alpha/a)) = ?1 a2 = ?1 ?(alpha/a))/(1 + (alpha/a)) 4. the transfer function implemented by the AD1953 is given by: h(z) = (b0 + b1 z ? + b2 z ? )/(1 ?a1 z ? ?a2 z ? ) note the inversion in sign of a1 and a2 relative to the more standard form. this form is used in this document because the ad19 53 implements the difference equation using the formula below. y(n) = a1 y(n ?1) + a2 y(n ?2) + b0 x(n) + b1 x(n ?1) + b2 x(n ?2)
rev. 0 AD1953 ?4 outline dimensions 48-lead low profile quad flat package [lqfp] (st-48) dimensions shown in millimeters top view (pins down) 1 12 13 25 24 36 37 48 0.27 0.22 0.17 0.50 bsc 7.00 bsc sq seating plane 1.60 max 0.75 0.60 0.45 view a 9.00 bsc sq pin 1 0.20 0.09 1.45 1.40 1.35 0.10 max coplanarity view a rotated 90  ccw seating plane 10  6  2  7  3.5  0  0.15 0.05 compliant to jedec standards ms-026bbc
?5
?6 c02909??/03(0)


▲Up To Search▲   

 
Price & Availability of AD1953

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X